%% Author : lichuang 
-module(echubby_config_test).
-include_lib("eunit/include/eunit.hrl").

parse_file_test() ->
  ?assertEqual({ok}, echubby_config:parse_file("./conf/config.txt")),
  ?assertEqual(echubby_config:get_item(my_server_id), 1),
  [{Id, _, _}] = echubby_config:get_my_server_info(),
  ServerInfo = echubby_config:get_other_server_info(),
  ?assertEqual(echubby_config:get_item(my_server_id), Id),
  echubby_config:get_other_server_info(),
  ok.
